import { Toast } from "vant";
export default {
  components: {},
  props: {},
  data() {
    return {
      timeType: 0,
      type: 0,
      list: []
    };
  },
  activated() {
    console.log(this.$route.params, "kkkkkkk");
    this.timeType = this.$route.params.timeType;
    this.type = this.$route.params.type;
    this.getData();
  },

  methods: {
    goback() {
      this.$router.go(-1);
    },
    getData() {
      // 图文化--是否实名
      var that = this;
      $http
        .get(
          "Guxinyu.gx_detail",
          {
            uid: localStorage.getItem("uid") ? localStorage.getItem("uid") : localStorage.getItem("mid"),
            type: this.type,
            time_type: this.timeType
          },
          "..."
        )
        .then(response => {
          that.list = response.data;
        });
    }
  }
};
